package com.woniu.apartment.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.woniu.apartment.mapper.ApartmentExtMapper;
import com.woniu.apartment.domain.ApartmentExt;
import com.woniu.apartment.service.IApartmentExtService;

/**
 * 公寓详情Service业务层处理
 * 
 * @author yy
 * @date 2023-04-03
 */
@Service
public class ApartmentExtServiceImpl implements IApartmentExtService 
{
    @Autowired
    private ApartmentExtMapper apartmentExtMapper;

    /**
     * 查询公寓详情
     * 
     * @param apartmentId 公寓详情主键
     * @return 公寓详情
     */
    @Override
    public ApartmentExt selectApartmentExtByApartmentId(Long apartmentId)
    {
        return apartmentExtMapper.selectApartmentExtByApartmentId(apartmentId);
    }

    /**
     * 查询公寓详情列表
     * 
     * @param apartmentExt 公寓详情
     * @return 公寓详情
     */
    @Override
    public List<ApartmentExt> selectApartmentExtList(ApartmentExt apartmentExt)
    {
        return apartmentExtMapper.selectApartmentExtList(apartmentExt);
    }

    /**
     * 新增公寓详情
     * 
     * @param apartmentExt 公寓详情
     * @return 结果
     */
    @Override
    public int insertApartmentExt(ApartmentExt apartmentExt)
    {
        return apartmentExtMapper.insertApartmentExt(apartmentExt);
    }

    /**
     * 修改公寓详情
     * 
     * @param apartmentExt 公寓详情
     * @return 结果
     */
    @Override
    public int updateApartmentExt(ApartmentExt apartmentExt)
    {
        return apartmentExtMapper.updateApartmentExt(apartmentExt);
    }

    /**
     * 批量删除公寓详情
     * 
     * @param apartmentIds 需要删除的公寓详情主键
     * @return 结果
     */
    @Override
    public int deleteApartmentExtByApartmentIds(Long[] apartmentIds)
    {
        return apartmentExtMapper.deleteApartmentExtByApartmentIds(apartmentIds);
    }

    /**
     * 删除公寓详情信息
     * 
     * @param apartmentId 公寓详情主键
     * @return 结果
     */
    @Override
    public int deleteApartmentExtByApartmentId(Long apartmentId)
    {
        return apartmentExtMapper.deleteApartmentExtByApartmentId(apartmentId);
    }
}
